﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateCase.aspx.cs" Inherits="services_CreateCase" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register src="../header.ascx" tagname="header" tagprefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Crear caso</title>
    <link href="../style/Style.css" rel="stylesheet" type="text/css" />
    <link href="css/axesat.css" rel="stylesheet" type="text/css" />
    <link href="../js/shadowbox/shadowbox.css" rel="stylesheet" type="text/css" />        
    <script src="../js/shadowbox/shadowbox.js" type="text/javascript"></script>        
    
</head>

<body>
    <form id="form1" runat="server">
        <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnablePageMethods="true" />
        
        
    <div>
    <asp:HiddenField ID="hdnServicio" runat="server" />
    <asp:HiddenField ID="hdnNIT" runat="server" />
    <table width="95%">
    <tr>
        <td colspan="2">            
            <uc1:header ID="header1" runat="server" />
        </td>
    </tr>
    <tr>
    <td>
        <div class="tit_content">Gestión de casos</div>
        <div id="bar_nav2">
            <div class="menusupe">
                <ul>
                    <li class="overmenu"><a href="#">Crear Caso</a></li>
                </ul>
            </div>     
        </div>
    </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>    
    <tr>
        <td>
    <table width="895px">
    <tr>
        <td colspan="2" align="left">
        <a href="javascript:history.back(1)"><img style="cursor: pointer; border-width: 0px; border-style: solid;" src="/Portals/0/Imagenes/back.jpg" alt="Volver" id="img1" /></a>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:DropDownList ID="ddlSearch" runat="server" Width="100px" 
                AutoPostBack="True" onselectedindexchanged="ddlSearch_SelectedIndexChanged">
                <asp:ListItem Value="1">Servicio</asp:ListItem>
                <asp:ListItem Value="2">CPA</asp:ListItem>                
            </asp:DropDownList>   
            &nbsp;&nbsp;
            <asp:TextBox ID="txtBusqueda" runat="server"
                Width="330px" autocomplete="off"></asp:TextBox>
            <ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="txtBusqueda"
             MinimumPrefixLength="2" ServiceMethod="GetCompletionList" CompletionSetCount="12" CompletionInterval="500"
              EnableCaching="true" ContextKey="" UseContextKey="true">
            
            </ajaxToolkit:AutoCompleteExtender>&nbsp;
            <asp:ImageButton ID="btnSeleccionar" runat="server" 
                    ImageUrl="../images/chulo.gif" onclick="btnSeleccionar_Click" 
                ToolTip="Seleccionar este servicio" />                                                     
           
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td>                    
        <table style="width:100%;" class="headerService">
            <tr>
                <td colspan="2" align="left">&nbsp;                
                </td>
            </tr>
              <tr>
                  <td>
                     <b> Id Servicio</b></td>
                  <td>
                         <asp:Label ID="lblIdService" runat="server"  Text=""></asp:Label>
                         </td>
              </tr>
              <tr>
                  <td>
                     <b> Nombre Servicio</b></td>
                    <td>
                  <asp:Label ID="lblService" runat="server"  Text=""></asp:Label></td>
            </tr>
              <tr>
                  <td>
                     <b> CPA</b></td>
                    <td>
                  <asp:Label ID="lblCPA" runat="server"  Text=""></asp:Label></td>
            </tr>            
              <tr>
                  <td>
                     <b> Tipo de servicio</b></td>
                    <td>
                  <asp:Label ID="lblTipoServicio" runat="server"  Text=""></asp:Label></td>
            </tr>
<%--              <tr>
                  <td>
                     <b> Tecnología</b></td>
                    <td>
                  <asp:Label ID="lblTecnologia" runat="server"  Text=""></asp:Label></td>
            </tr>                                    
--%>              <tr>
                  <td>
                     <b> Estado</b></td>
                    <td>
                  <asp:Label ID="lblEstado" runat="server"  Text=""></asp:Label></td>
            </tr>                                                
        </table>
        
        
        </td>
    </tr> 
    <tr>
        <td>&nbsp;</td>
    </tr>  
    <tr>
        <td align="center">
            <table>
                <tr>
                    <td>                
                        Tipo de caso:</td>
                    <td>
                        <asp:DropDownList ID="ddlTipoCaso" runat="server" Width="230px" 
                            AutoPostBack="True" onselectedindexchanged="ddlTipoCaso_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlTipoCaso"
                                Display="None" ErrorMessage="Debe seleccionar el tipo de caso" InitialValue="-1"
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                
                    </td>
                
                </tr>
                <tr>
                    <td>
                        Motivo:</td>
                    <td>
                        <asp:DropDownList ID="ddlMotivo" runat="server" Width="230px">
                        </asp:DropDownList>      
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlMotivo"
                                Display="None" ErrorMessage="Debe seleccionar el motivo" InitialValue="-1"
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                
                                  
                    </td>
                </tr>        
                
                <tr>
                    <td>
                        Persona que crea el caso:</td>
                    <td>
                        <asp:TextBox ID="txtPersona" runat="server"
                            Width="230px"></asp:TextBox>                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPersona"
                                Display="None" ErrorMessage="Debe escribir el nombre de persona que crea el caso" InitialValue=""
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                                                  
                    </td>
                </tr>        
                <tr>
                    <td>
                        Mail:</td>
                    <td>
                        <asp:TextBox ID="txtMail" runat="server"
                            Width="230px"></asp:TextBox>                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtMail"
                                Display="None" ErrorMessage="Debe escribir el mail" InitialValue=""
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                                                  
                    </td>
                </tr>        
                <tr>
                    <td>
                        Teléfono:</td>
                    <td>
                        <asp:TextBox ID="txtTelefono" runat="server"
                            Width="230px"></asp:TextBox>                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTelefono"
                                Display="None" ErrorMessage="Debe escribir el teléfono" InitialValue=""
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                                                  
                    </td>
                </tr>        
                
                <tr>
                    <td valign="top">
                        Descripción</td>
                    <td>
                        <asp:TextBox ID="txtDescription" runat="server" Height="105px" 
                            TextMode="MultiLine" Width="230px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDescription"
                                Display="None" ErrorMessage="Debe escribir la descripción"
                                ValidationGroup="Crear"></asp:RequiredFieldValidator>                    
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                    <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                        <asp:ImageButton ID="btnGuardar" runat="server" 
                            ImageUrl="../images/btn_guardar.jpg" ValidationGroup="Crear" 
                            onclick="btnGuardar_Click" />
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                            ShowSummary="False" ValidationGroup="Crear" />
                        <br />
                    
                    </td>
                </tr>
            
            </table>
        </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </div>
    </form>
</body>
</html>
